package com.sunjob.common.domain.assets;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Instance {
    //对应实例的id
    private Long instanceId;
    //对应实例的名称
    private String instanceName;
    //对应构型的id
    private Long shapeId;
    //对应构型的名称
    private String shapeName;
    //对应实例的生产厂家
    private String instanceVender;
    //对应实例的品牌
    private String instanceBrand;
    //对应实例的型号
    private String instanceModel;
    //对应实例的运行里程
    private Double instanceMileage;
    //对应实例的使用寿命
    private int time;
    //对应实例的制造时间
    private Date instanceCreateDate;
    //对应实例的报废时间
    private LocalDateTime endDate;
    //实例信息的创建时间
    private LocalDateTime createDate;
    //实例信息的修改时间
    private LocalDateTime modifyDate;
    //实例信息的创建人的id
    private Long creator;
    //实例信息的修改人的id
    private Long modifier;
    //实例信息的状态
    private int status;
    //所属其下的部件列表
    private List<Part> parts;
}
